home *** CD-ROM | disk | FTP | other *** search
/ Aminet 5 / Aminet 5 - March 1995.iso / Aminet / game / role / Angband_2_6_2.lha / Angband / src / death.c.diffs < prev    next >
Text File  |  1995-01-06  |  3KB  |  140 lines

  1.  
  2.         TO TRANSFORM death.c INTO death.c.orig ...
  3.  
  4. *** DELETE 29 FROM death.c ***
  5. <#ifndef AMIGA
  6.  
  7. *** CHANGE [41,43] IN death.c TO 40 IN death.c.orig ***
  8. <#endif
  9. <
  10. <#ifndef AMIGA
  11.  
  12. ---------------
  13. >
  14.  
  15. *** DELETE 55 FROM death.c ***
  16. <#endif
  17.  
  18. *** CHANGE 70 IN death.c TO 66 IN death.c.orig ***
  19. <#if defined(USG) || defined(VMS) || defined(AMIGA)
  20.  
  21. ---------------
  22. >#if defined(USG) || defined(VMS)
  23.  
  24. *** DELETE 166 FROM death.c ***
  25. <#ifndef AMIGA
  26.  
  27. *** DELETE [172,175] FROM death.c ***
  28. <#else
  29. <    fd = my_topen(ANGBAND_TOP, O_RDWR | O_CREAT, 0);
  30. <    if (fd < 0) {
  31. <#endif
  32.  
  33. *** DELETE 181 FROM death.c ***
  34. <#ifndef AMIGA
  35.  
  36. *** DELETE [194,200] FROM death.c ***
  37. <#else
  38. <    (void)sprintf(hugebuffer, "%3d) %-7ld %s the %s %s (Level %d)",
  39. <              i / 2 + 1,
  40. <              (long)score.points, score.name,
  41. <              race[score.prace].trace, class[score.pclass].title,
  42. <              (int)score.lev);
  43. <#endif
  44.  
  45. *** DELETE 217 FROM death.c ***
  46. <#ifdef SIGTSTP
  47.  
  48. *** DELETE [219,220] FROM death.c ***
  49. <#endif
  50. <
  51.  
  52. *** CHANGE 280 IN death.c TO 260 IN death.c.orig ***
  53. <#if !defined(__MINT__) && !defined(AMIGA)
  54.  
  55. ---------------
  56. >#ifndef __MINT__
  57.  
  58. *** DELETE 465 FROM death.c ***
  59. <#ifndef AMIGA
  60.  
  61. *** CHANGE [478,481] IN death.c TO [457,459] IN death.c.orig ***
  62. <#endif
  63. </* Check to see if this score is a high one and where it goes */
  64. <    i = 0;
  65. <#if !defined(BSD4_3) || defined(AMIGA)
  66.  
  67. ---------------
  68. >/* Check to see if this score is a high one and where it goes */
  69. >    i = 0;
  70. >#ifndef BSD4_3
  71.  
  72. *** CHANGE [512,518] IN death.c TO [490,494] IN death.c.orig ***
  73. <#ifndef AMIGA
  74. </* added usg lockf call - cba */
  75. <#ifdef USG
  76. <    lockf(highscore_fd, F_ULOCK, 0);
  77. <#else
  78. <    (void)flock(highscore_fd, LOCK_UN);
  79. <#endif
  80.  
  81. ---------------
  82. >/* added usg lockf call - cba */
  83. >#ifdef USG
  84. >    lockf(highscore_fd, F_ULOCK, 0);
  85. >#else
  86. >    (void)flock(highscore_fd, LOCK_UN);
  87.  
  88. *** CHANGE [538,556] IN death.c TO [514,526] IN death.c.orig ***
  89. <#ifndef AMIGA
  90. </* added usg lockf call - cba */
  91. <#ifdef USG
  92. <    if (lockf(highscore_fd, F_LOCK, 0) != 0)
  93. <#else
  94. <    if (0 != flock(highscore_fd, LOCK_EX))
  95. <#endif
  96. <    {
  97. <    perror("Error gaining lock for score file");
  98. <    exit_game();
  99. <    }
  100. <#endif
  101. </* Check to see if this score is a high one and where it goes */
  102. <    i = 0;
  103. <#ifndef AMIGA
  104. <    (void)lseek(highscore_fd, (off_t) 0, L_SET);
  105. <#else
  106. <    (void)lseek(highscore_fd, 0L, L_SET);
  107. <#endif
  108.  
  109. ---------------
  110. >/* added usg lockf call - cba */
  111. >#ifdef USG
  112. >    if (lockf(highscore_fd, F_LOCK, 0) != 0)
  113. >#else
  114. >    if (0 != flock(highscore_fd, LOCK_EX))
  115. >#endif
  116. >    {
  117. >    perror("Error gaining lock for score file");
  118. >    exit_game();
  119. >    }
  120. >/* Check to see if this score is a high one and where it goes */
  121. >    i = 0;
  122. >    (void)lseek(highscore_fd, (off_t) 0, L_SET);
  123.  
  124. *** CHANGE [579,585] IN death.c TO [549,553] IN death.c.orig ***
  125. <#ifndef AMIGA
  126. </* added usg lockf call - cba */
  127. <#ifdef USG
  128. <    lockf(highscore_fd, F_ULOCK, 0);
  129. <#else
  130. <    (void)flock(highscore_fd, LOCK_UN);
  131. <#endif
  132.  
  133. ---------------
  134. >/* added usg lockf call - cba */
  135. >#ifdef USG
  136. >    lockf(highscore_fd, F_ULOCK, 0);
  137. >#else
  138. >    (void)flock(highscore_fd, LOCK_UN);
  139.  
  140.